package com.y.report.entity.basic;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 接口配置表
 * </p>
 *
 * @author y
 * @since 2021-09-23
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "YReportApi对象", description = "接口配置表")
public class YReportApi implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键id")
    @TableId(value = "api_id", type = IdType.AUTO)
    private Long apiId;

    @ApiModelProperty(value = "api名称")
    private String apiName;

    @ApiModelProperty(value = "api编码：唯一")
    private String apiCode;

    @ApiModelProperty(value = "api认证信息")
    private String apiAuths;

    @ApiModelProperty(value = "url地址【api唯一标识】")
    private String apiUrl;

    @ApiModelProperty(value = "api cookie值")
    private String apiCookies;

    @ApiModelProperty(value = "api请求方法")
    private String apiMethods;

    @ApiModelProperty(value = "api请求头")
    private String apiHeaders;

    @ApiModelProperty(value = "解析请求头：jsonObj")
    private String reqTemplateHeaders;

    @ApiModelProperty(value = "解析url")
    private String reqTemplateUrl;

    @ApiModelProperty(value = "解析请求体:jsonObj")
    private String reqTemplateBody;

    @ApiModelProperty(value = "模板响应体:jsonObj")
    private String respTemplateBody;

    @ApiModelProperty(value = "模板响应头:jsonObj")
    private String respTemplateHeaders;

    @ApiModelProperty(value = "模板响应cookie:jsonObj")
    private String respTemplateCookies;

    @ApiModelProperty(value = "响应状态码")
    private String respStatus;

    @ApiModelProperty(value = "描述信息")
    private String remark;

    @ApiModelProperty(value = "0-正常，1-禁用")
    private Integer delFlag;

    @ApiModelProperty(value = "更新时间")
    private LocalDateTime uTime;

    @ApiModelProperty(value = "插入时间")
    private LocalDateTime iTime;


}
